package cn.klaw.flowable.model.trigger;

import cn.klaw.flowable.entity.TemplateJsonEntity;
import cn.klaw.flowable.entity.TemplateNodeEntity;
import cn.klaw.flowable.entity.TriggerRecordEntity;
import cn.klaw.flowable.entity.TriggerTaskEntity;
import cn.klaw.flowable.model.templatenode.nodejson.NodeModel;
import cn.klaw.base.UserInfo;
import lombok.Data;

import java.util.*;

/**
 * 类的描述
 *
 *
 * @version 5.0.x
 * @since 2024/9/10 20:44
 */
@Data
public class ExecuteModel {
    private String flowId;
    private String taskId;
    private String nodeCode;
    private String nodeId;
    private String groupId;
    private List<Map<String, Object>> dataList = new ArrayList<>();
    private UserInfo userInfo = new UserInfo();
    private String parentId = "0";
    private List<TemplateNodeEntity> nodeEntityList = new ArrayList<>();
    private String instanceId;

    private TemplateJsonEntity jsonEntity = new TemplateJsonEntity();

    private TriggerTaskEntity triggerTask = new TriggerTaskEntity();
    private List<TriggerRecordEntity> recordList = new ArrayList<>();

    private NodeModel nodeModel = new NodeModel();

    /**
     * 当前执行节点，用于获取最后的执行节点引擎id
     */
    private String currentNodeId;

    private String triggerKey;

    private Integer isAsync;
}
